package com.wzq.service.impl;

import com.wzq.dao.pojo.Type;
import com.wzq.mapper.Typemapper;
import com.wzq.service.ITypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author yzc
 * @since 2022-08-31
 */
@Service
public class TypeServiceImpl extends ServiceImpl<Typemapper, Type> implements ITypeService {
    @Autowired
    Typemapper typemapper;
    @Override
    public List<Integer> getBytitle(int onetitle) {
        return typemapper.getBytitle(onetitle);
    }

    @Override
    public List<Type> getActivityType() {
        return typemapper.getActivityType();
    }

    @Override
    public List<Type> getResourcesType() {
        return typemapper.getResourcesType();
    }

    //展示资源分类中的搜索
    @Override
    public List<Type> getResourcesTypeSearch(String title) {
        return typemapper.getResourcesTypeSearch(title);
    }

    @Override
    public List<Type> getActivityTypeSearch(String title) {
        return typemapper.getActivityTypeSearch(title);
    }

}
